package com.hgw.Demo03_DecoratorPattern.decorator;

/**
 * Data time:2021/12/14 16:47
 * StudentID:2019112118
 * Author:hgw
 * Description: 抽象装饰类
 */
public abstract class Garnish extends FastFood{

    // 声明快餐类的分类
    private FastFood fastFood;

    public Garnish(FastFood fastFood,float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
